import React from 'react'
import {
	HashRouter, //路由管理着
	Switch,
	Route,
} from 'react-router-dom'
import Index from './components/Index'
import Login from './components/Login'

class Router extends React.Component {
	render() {
		return (
			<div>
				<HashRouter>
					<Switch>
						<Route path="/Login" component={Login} />
						<Route path="/" component={Index} />
					</Switch>
				</HashRouter>
			</div>
		)
	}
}

export default Router
